/*清除原样式*/
* {
    margin: 0px;
    padding: 0px;
    border: 0px;
}



ul {
    list-style: none;
}

a {
    text-decoration: none;
}
/*一级菜单样式*/
#nav {
    width: 100%;
    height: 40px;
    margin: 0px auto;
    background: #ff1111;
    font-size: 18px;
    font-family: 微软雅黑;
}

    #nav ul li {
        float: center;
        width: 100%;
        /*包含块*/
        position:relative;
    }

        #nav ul li a {
            display: block;
            width:100%;
            height: 40px;
            line-height: 40px;
            text-align: center;
            color: #fff;
        }

            #nav ul li a:hover {
                color: #e0e0e0;
                background: #ff1111;
            }
/*二级菜单样式*/
        #nav ul li ul {
        z-index: 3;
        position:absolute;
        width: 100%;
        top:40px;
        margin: 0 auto;
        display:none;
        }
            #nav ul li ul li {
            float:none;
            margin: 0 auto;
            }
            #nav ul li ul li a{
                background:#0066ff;
                border-top:1px solid #ccc;
                margin: 0 auto;
            }
            /*一级菜单悬停时二级菜单可见*/
        #nav ul li:hover ul {
        display:block;
        }
